package com.medical.admin.patient.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 药品表
 */
@Data
@TableName(value = "mar_medicine")
public class Medicine {
    /**
     * 药物主键
     */
    @TableId(value = "medicine_id", type = IdType.AUTO)
    private Integer medicineId;

    /**
     * 药名
     */
    @TableField(value = "medicine_name")
    private String medicineName;

    /**
     * 药品价格
     */
    @TableField(value = "medicine_price")
    private Long medicinePrice;

    /**
     * 创建时间
     */
    @TableField(value = "create_date")
    private Date createDate;

    /**
     * 状态 1启用 0禁用 默认1
     */
    @TableField(value = "`state`")
    private Integer state;

    public static final String COL_MEDICINE_ID = "medicine_id";

    public static final String COL_MEDICINE_NAME = "medicine_name";

    public static final String COL_MEDICINE_PRICE = "medicine_price";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_STATE = "state";
}